﻿using Agility.DynamicProxies;
using Microsoft.Extensions.DependencyInjection;

namespace OpenAdmin.HttpApi.Proxies;

/// <summary>
/// 
/// </summary>
public class TestInterceptior : IAgilityInterceptor, ITransientDependency
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="args"></param>
    /// <exception cref="System.NotImplementedException"></exception>
    public void BeforeAction(object[] args)
    {
        System.Console.WriteLine("BeforeAction");
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="args"></param>
    /// <param name="result"></param>
    /// <exception cref="System.NotImplementedException"></exception>
    public void AfterAction(object[] args, object result)
    {
        System.Console.WriteLine("AfterAction");
    }
}
